package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.PcrKzy;
import com.zhijian.medical.entity.vo.request.PcrKzySearchVo;
import com.zhijian.medical.entity.vo.response.PcrKzyVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PcrKzyMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 根据实验id进行删除
     *
     * @param pcrId
     * @return
     */
    int deleteByPcrId(Long pcrId);

    int insert(PcrKzy record);

    int insertSelective(PcrKzy record);

    PcrKzy selectByPrimaryKey(Long id);

    /**
     * 根据实验id与设备id查找
     *
     * @param pcrId
     * @param deviceId
     * @return
     */
    PcrKzy selectByPcrIdAndDeviceId(@Param("pcrId") Long pcrId, @Param("deviceId") Long deviceId);

    int updateByPrimaryKeySelective(PcrKzy record);

    int updateByPrimaryKey(PcrKzy record);

    int count(PcrKzySearchVo pcrKzySearchVo);

    List<PcrKzyVo> selectList(PcrKzySearchVo pcrKzySearchVo);

    PcrKzyVo selectVoById(Long id);
}